package com.corecloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.security.web.firewall.HttpFirewall;
import org.springframework.security.web.firewall.StrictHttpFirewall;

/**
 * 项目启动类
 * 排除springboot自动依赖数据源相关配置
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class CorecloudApplication {

	public static void main(String[] args) {
		SpringApplication.run(CorecloudApplication.class, args);
	}


	@Bean
	public HttpFirewall allowUrlSemicolonHttpFirewall() {
		StrictHttpFirewall firewall = new StrictHttpFirewall();
		firewall.setAllowSemicolon(true);
		return firewall;
	}

}
